package com.wyy.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: 吴磊
 * @program: blog
 * @create: 2021-04-27 18:25
 */
@MapperScan("com.wu.mapper")
@Configuration
public class MybatisPlusConfig {
    //Mybatis-plus的分页插件配置，不然不生效
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
